#include <stdio.h>

int* twoSum(int* nums, int numsSize, int target) {
    int i = 0;
    int j;
    int *result= malloc(sizeof(int)*2);
    for (i=0;i<numsSize-1; i++){
        if (nums[i]> target){
            continue;
        }
        for(j =i+1; j< numsSize; j++){
            if((nums[i]+ nums[j])==target){
                result[0]=i;
                result[1]=j;
                break;
            }
        }
    }
    return result;
}

int main(){
    int *nums = malloc(sizeof(int)*4);
    for (int i=0; i< 4; i++){
        printf(i);
    }
    return 0;
}
